﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace INSTA.BankApplication.Engine
{   

    /// <summary>
    /// Class that contains all infos about a money
    /// transfer (deposit or withdraw) performed on 
    /// a bank account.
    /// </summary>
    public class MoneyTransferEventArgs : EventArgs
    {

        /// <summary>
        /// Initializes a new instance of the <see cref="MoneyTransferEventArgs"/> class.
        /// </summary>
        /// <param name="transferType">Type of the transfer.</param>
        /// <param name="transferAmount">The transfer amount.</param>
        /// <param name="currentBalance">The current balance.</param>
        public MoneyTransferEventArgs(TransferType transferType,
                                      double transferAmount,
                                      double currentBalance  )
        {
            TransferType    = transferType;
            TransferAmount  = transferAmount;
            CurrentBalance  = currentBalance;
        }

        /// <summary>
        /// Gets the type of the transfer.
        /// </summary>
        /// <value>The type of the transfer (deposit / withdraw.</value>
        public TransferType TransferType
        {
            get; 
            private set;
        }

        

        /// <summary>
        /// Gets the current balance.
        /// </summary>
        public double CurrentBalance
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the transfer amount.
        /// </summary>
        public double TransferAmount
        {
            get;
            private set;
        }





    }
}
